// import * as types from './mutation-types'

// export const setDatas = function ({ commit, state }, { list, index }) {
//   commit(types.SET_SEQUENCE_LIST, list)
//   if (state.mode === playMode.random) {
//     let randomList = shuffle(list)
//     commit(types.SET_PLAYLIST, randomList)
//     index = findIndex(randomList, list[index])
//   } else {
//     commit(types.SET_PLAYLIST, list)
//   }
//   commit(types.SET_CURRENT_INDEX, index)
//   commit(types.SET_FULL_SCREEN, true)
//   commit(types.SET_PLAYING_STATE, true)
// }

